package ui;

/**
 * JPanel EmployeeMainMenu
 * 
 * @author XA9
 * 
 */

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;

public class EmployeeMainMenu extends JPanel {
	private JLabel lblPleaseSelectAmong;
	private JLabel lblEmployeeMenu;
	private JButton btnHandleCustomers;
	private JButton btnHandleAccounts;
	private JButton btnLogout;
	private JLabel lblXA9;
	private JLabel lblLogo;

	/**
	 * Create the panel.
	 */
	public EmployeeMainMenu() {
		setLayout(null);

		lblPleaseSelectAmong = new JLabel(
				"Please choose which of 2 following you want to handle");
		lblPleaseSelectAmong.setHorizontalAlignment(SwingConstants.CENTER);
		lblPleaseSelectAmong.setForeground(Color.BLACK);
		lblPleaseSelectAmong.setFont(new Font("Eurostile", Font.PLAIN, 14));
		lblPleaseSelectAmong.setBounds(0, 162, 735, 16);
		add(lblPleaseSelectAmong);

		lblXA9 = new JLabel("\u00A92013 CBS HA.IT (Gruppe XA-9)\t\t ");
		lblXA9.setForeground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setBackground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setHorizontalAlignment(SwingConstants.CENTER);
		lblXA9.setFont(new Font("Eurostile", Font.PLAIN, 11));
		lblXA9.setBounds(0, 550, 735, 50);
		add(lblXA9);

		lblEmployeeMenu = new JLabel("Employee menu");
		lblEmployeeMenu.setOpaque(true);
		lblEmployeeMenu.setHorizontalAlignment(SwingConstants.CENTER);
		lblEmployeeMenu.setForeground(Color.BLACK);
		lblEmployeeMenu.setFont(new Font("Eurostile", Font.BOLD, 24));
		lblEmployeeMenu.setBackground(UIManager.getColor("Button.background"));
		lblEmployeeMenu.setBounds(0, 128, 735, 28);
		add(lblEmployeeMenu);

		btnHandleCustomers = new JButton("Customers");
		btnHandleCustomers.setFont(new Font("Eurostile", Font.BOLD, 13));
		btnHandleCustomers.setBounds(156, 204, 200, 55);
		add(btnHandleCustomers);

		btnHandleAccounts = new JButton("Accounts");
		btnHandleAccounts.setFont(new Font("Eurostile", Font.BOLD, 13));
		btnHandleAccounts.setBounds(369, 204, 200, 55);
		add(btnHandleAccounts);

		btnLogout = new JButton("Logout");
		btnLogout.setForeground(UIManager.getColor("Button.select"));
		btnLogout.setFont(new Font("Eurostile", Font.BOLD, 13));
		btnLogout.setBounds(156, 267, 200, 50);
		add(btnLogout);

		lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon(
				"/Users/martinotto-sidelmann/Desktop/Zombium.png"));
		lblLogo.setBounds(530, 12, 200, 70);
		add(lblLogo);

	}

	/**
	 * Returns JButton
	 * 
	 * @return String btnHandleCustomers
	 */
	public JButton getBtnHandleCustomers() {
		return btnHandleCustomers;
	}

	/**
	 * Returns JButton
	 * 
	 * @return String btnHandleAccounts
	 */
	public JButton getBtnHandleAccounts() {
		return btnHandleAccounts;
	}

	/**
	 * Returns JButton
	 * 
	 * @return String btnLogout
	 */
	public JButton getBtnLogout() {
		return btnLogout;
	}

	/**
	 * Add ActionListener to JButtons
	 * 
	 * @param ActionListener
	 *            l
	 * 
	 */
	public void addActionListener(ActionListener l) {
		btnLogout.addActionListener(l);
		btnHandleAccounts.addActionListener(l);
		btnHandleCustomers.addActionListener(l);
	}

}
